package me.vudu.Conflict.Listeners;

import me.vudu.Conflict.ConflictPlugin;

import org.getspout.spoutapi.event.input.KeyBindingEvent;
import org.getspout.spoutapi.gui.ScreenType;
import org.getspout.spoutapi.keyboard.BindingExecutionDelegate;
 
/**
 * not used...
 * @author vwendel
 *
 */
public class SpoutMeasureKeyListener implements BindingExecutionDelegate {
 
    ConflictPlugin plugin;
 
    public SpoutMeasureKeyListener(ConflictPlugin spoutMeasure) {
        plugin = spoutMeasure;
    }
 
 
 
 
 
    @Override
    public void keyPressed(KeyBindingEvent event) { //Gets fired when the binded key is pressed.
    	//Bukkit.getLogger().log(Level.INFO, "HURZ!");
        if (event.getScreenType() != ScreenType.GAME_SCREEN){ //Check if the screen is NOT the main game screen.
            return; //Return if this is the case.
        }
       // plugin.createOverlay(event.getPlayer()); //Create the overlay for the player.
 
    }
 
    @Override
    public void keyReleased(KeyBindingEvent event) { //NOT USED.
        // TODO Auto-generated method stub
 
    }
 
}